function computedFPS(vga) {
	vga = vga.replace(/[ ]/g, "");
	let kind = mapVGA(vga);
	let score = {
		gumu: "暂无数据",
		aodesai: "暂无数据",
		chiji: "暂无数据",
	};
	switch (kind) {
		case "2080Ti":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 30);
			score.chiji = Math.ceil(Math.random(10) + 80);
			return score;
		case "2080S":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 30);
			score.chiji = Math.ceil(Math.random(10) + 50);
			return score;
		case "2080":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 20);
			score.chiji = Math.ceil(Math.random(10) + 60);
			return score;
		case "2070S":
			score.gumu = Math.ceil(Math.random(10) + 30);
			score.aodesai = Math.ceil(Math.random(10) + 20);
			score.chiji = Math.ceil(Math.random(10) + 50);
			return score;
		case "2070":
			score.gumu = Math.ceil(Math.random(10) + 30);
			score.aodesai = Math.ceil(Math.random(10) + 15);
			score.chiji = Math.ceil(Math.random(10) + 50);
			return score;
		case "2060S":
			score.gumu = Math.ceil(Math.random(10) + 30);
			score.aodesai = Math.ceil(Math.random(10) + 15);
			score.chiji = Math.ceil(Math.random(10) + 40);
			return score;
		case "2060":
			score.gumu = Math.ceil(Math.random(10) + 20);
			score.aodesai = Math.ceil(Math.random(10) + 10);
			score.chiji = Math.ceil(Math.random(10) + 40);
			return score;
		case "5700XT":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 10);
			score.chiji = Math.ceil(Math.random(10) + 50);
			return score;
		case "5700":
			score.gumu = Math.ceil(Math.random(10) + 30);
			score.aodesai = Math.ceil(Math.random(10) + 10);
			score.chiji = Math.ceil(Math.random(10) + 40);
			return score;
		case "1660Ti":
			score.gumu = Math.ceil(Math.random(10) + 25);
			score.aodesai = Math.ceil(Math.random(10) + 25);
			score.chiji = Math.ceil(Math.random(10) + 40);
			return score;
		case "1660S":
			score.gumu = Math.ceil(Math.random(10) + 30);
			score.aodesai = Math.ceil(Math.random(10) + 25);
			score.chiji = Math.ceil(Math.random(10) + 30);
			return score;
		case "1660":
			score.gumu = Math.ceil(Math.random(10) + 20);
			score.aodesai = Math.ceil(Math.random(10) + 5);
			score.chiji = Math.ceil(Math.random(10) + 30);
			return score;
		case "3060Ti":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 20);
			score.chiji = Math.ceil(Math.random(10) + 80);
			return score;
		case "3060":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 22);
			score.chiji = Math.ceil(Math.random(10) + 65);
			return score;
		case "3070Ti":
			score.gumu = Math.ceil(Math.random(10) + 55);
			score.aodesai = Math.ceil(Math.random(10) + 30);
			score.chiji = Math.ceil(Math.random(10) + 90);
			return score;
		case "3070":
			score.gumu = Math.ceil(Math.random(10) + 50);
			score.aodesai = Math.ceil(Math.random(10) + 25);
			score.chiji = Math.ceil(Math.random(10) + 90);
			return score;
		case "3080Ti":
			score.gumu = Math.ceil(Math.random(10) + 80);
			score.aodesai = Math.ceil(Math.random(10) + 35);
			score.chiji = Math.ceil(Math.random(3) + 95);
			return score;
		case "3080":
			score.gumu = Math.ceil(Math.random(10) + 65);
			score.aodesai = Math.ceil(Math.random(10) + 30);
			score.chiji = Math.ceil(Math.random(2) + 98);
			return score;
		case "3090Ti":
			score.gumu = Math.ceil(Math.random(10) + 80);
			score.aodesai = Math.ceil(Math.random(10) + 70);
			score.chiji = Math.ceil(Math.random(2) + 98);
			return score;
		case "3090":
			score.gumu = Math.ceil(Math.random(10) + 80); //198
			score.aodesai = Math.ceil(Math.random(10) + 70); //109
			score.chiji = Math.ceil(Math.random(10) + 90); //343
			return score;
		case "6800XT":
			score.gumu = Math.ceil(Math.random(10) + 60);
			score.aodesai = Math.ceil(Math.random(10) + 50);
			score.chiji = Math.ceil(Math.random(10) + 80);
			return score;
		case "6800":
			score.gumu = Math.ceil(Math.random(10) + 60);
			score.aodesai = Math.ceil(Math.random(10) + 30);
			score.chiji = Math.ceil(Math.random(10) + 80);
			return score;
		case "3050":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 15);
			score.chiji = Math.ceil(Math.random(10) + 55);
			return score;
		case "590":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 15);
			score.chiji = Math.ceil(Math.random(10) + 55);
			return score;
		case "1650":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 15);
			score.chiji = Math.ceil(Math.random(10) + 55);
			return score;
		case "5500":
			score.gumu = Math.ceil(Math.random(10) + 40);
			score.aodesai = Math.ceil(Math.random(10) + 15);
			score.chiji = Math.ceil(Math.random(10) + 55);
			return score;
	}
	return score;
}

function mapVGA(vga) {
	if (vga.includes("2080Ti")) return "2080Ti";
	if (vga.includes("2080S")) return "2080S";
	if (vga.includes("2080")) return "2080";
	if (vga.includes("2070S")) return "2070S";
	if (vga.includes("2070")) return "2070";
	if (vga.includes("2060S")) return "2070S";
	if (vga.includes("2060")) return "2060";
	if (vga.includes("5700XT")) return "5700XT";
	if (vga.includes("5700")) return "5700";
	if (vga.includes("1660Ti")) return "1660Ti";
	if (vga.includes("1660S")) return "1660S";
	if (vga.includes("1660")) return "1660";
	if (vga.includes("3060Ti")) return "3060Ti";
	if (vga.includes("3060")) return "3060";
	if (vga.includes("3070Ti")) return "3070Ti";
	if (vga.includes("3070")) return "3070";
	if (vga.includes("3080Ti")) return "3080Ti";
	if (vga.includes("3080")) return "3080";
	if (vga.includes("3090Ti")) return "3090Ti";
	if (vga.includes("3090")) return "3090";
	if (vga.includes("6800XT")) return "6800XT";
	if (vga.includes("6800")) return "6800";
	if (vga.includes("3050")) return "3050";
	if (vga.includes("590")) return "590";
	if (vga.includes("1650")) return "1650";
	if (vga.includes("5500")) return "5500";
}

export default computedFPS
